<%@ page import="java.util.List" %>
<%@ page import="com.entity.productdetails" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.io.PrintWriter" %><%--
  Created by IntelliJ IDEA.
  User: 刘锦华
  Date: 2022/2/24
  Time: 16:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
    <title>Title</title>
    <style>
        table {
            width: 100%;
            background: #ccc;
            margin: 10px auto;
            border-collapse: collapse;/*border-collapse:collapse合并内外边距(去除表格单元格默认的2个像素内外边距*/
        }
        th,td {
            height: 40px;
            line-height: 40px;
            text-align: center;
            border: 1px solid #ccc;
        }
        th {
            background: #eee;
            font-weight: normal;
        }
        tr {
            background: #fff;
        }
        tr:hover {
            background: #cc0;
        }
        td a {
            color: #06f;
            text-decoration: none;
        }
        td a:hover {
            color: #06f;
            text-decoration: underline;
        }
    </style>
</head>
<body>
<div style="background-color: white">
    <div class="biao">
        <table>
            <tr>
                <th>账号</th>
                <th>区服</th>
                <th>价格</th>
                <th>账号亮点</th>
<%--                <th>操作</th>--%>
            </tr>
            <tr>
                <%
                    List<productdetails> list= (List<productdetails>) request.getSession().getAttribute("messages");
                    for (int i = 0; i < list.size(); i++) {
                %>
                <td><%=list.get(i).getAccount()%></td>
                <td><%=list.get(i).getZone()%></td>
                <td><%=list.get(i).getUnitPrice()%></td>
                <td><%=list.get(i).getProductValue()%></td>
<%--                <td><a href="deletesp?id=<%=list.get(i).getGId()%>">删除</a></td>--%>
            </tr>
            <%
                }
            %>
            </tr>
        </table>
    </div>
</div>
</body>
</html>
